import QtQuick 1.0

Rectangle {
    id: container

   function show(score) {
      scoreText.text = score;
      scoretip.opacity = 0.7;
   }

   function hide() {
      scoretip.opacity = 0;
   }

   width: scoreText.width + 2
   height: scoreText.height + 2
   opacity: 0

   
   color: "yellow"
   radius: 6

   Text {
      id: scoreText
      anchors.centerIn: parent
      text: "123"
   }
}